<template>
  <el-container class="layout-container-demo" style="height:auto" >
    <Sidebar/>
    <el-container class="right-contain"><!--右侧栏位-->
      <Header></Header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script lang="ts" setup>
import Header from "./Frame/Header.vue";
import Sidebar from '../components/Sidebar/Sidebar.vue'
</script>

<style lang="scss" scoped>
.right-contain  {
  margin-left: 220px;
  display: flex;
  flex-direction: column;  /* 按照列column(垂直方向)排列*/
}
.layout-container-demo .el-aside {
  background: #4a5a74;
}

.layout-container-demo .el-menu {
  border-right: none;
}

.layout-container-demo .el-main {
  padding: 0;
}

.layout-container-demo .toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  right: 20px;
}
</style>
